package com.recsmile.sgs.client.commonds;

import com.recsmile.sgs.client.card.equips.Equipment;
import com.recsmile.sgs.client.controller.EquipmentUsableGameController;
import com.recsmile.sgs.client.entity.Game;

public class EquipInGameServerCommand extends InGameServerCommand {
	
	private static final long serialVersionUID = 7476795400557013712L;

	private final Equipment equipment;

	public EquipInGameServerCommand(Equipment card) {
		this.equipment = card;
	}

	@Override
	public void execute(Game game) {
		game.<EquipmentUsableGameController>getGameController().onEquipped(equipment);
	}

}
